package com.frank.auth.domain.convert;

import com.frank.auth.domain.bo.AuthPermissionBo;
import com.frank.auth.domain.bo.AuthRolePermissionBo;
import com.frank.auth.infra.basic.entity.AuthPermission;
import com.frank.auth.infra.basic.entity.AuthRolePermission;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2024/2/9
 * @description
 */
@Mapper
public interface AuthRolePermissionBoConvert {

    AuthRolePermissionBoConvert INSTANCE = Mappers.getMapper(AuthRolePermissionBoConvert.class);

    AuthRolePermission convertBoToEntity(AuthRolePermissionBo authRolePermissionBo);

    AuthRolePermissionBo convertEntityToBo(AuthRolePermission authRolePermission);
}
